import fs from 'fs';

const globalError = (e: Error) => fs.appendFileSync('', String(e.message || e));

process.on('unhandledRejection', globalError);
process.on('uncaughtExceptionMonitor', globalError);
